package com.zzyl.nursing.mapper;

import com.zzyl.nursing.vo.CountByTime;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface ReservationMapper {

    Integer selectCancelledCount(@Param("startTime") LocalDateTime startTime,
                                 @Param("endTime") LocalDateTime endTime,
                                 @Param("userId") Long userId);

    List<CountByTime> selectCancelledCountByTime(@Param("time") Long time);
}
